const fs = require('fs')
const promisify = require('util').promisify

const read = promisify(fs.readFile)

read('./watch.js').then(data=>{
    console.log(data.toString())
}).catch(ex=>{
    console.log(ex)
})


async function test() {
    try {
        const content = await read('./watch.js')
        console.log(content.toString())
    }catch (ex){
        console.log(ex)
    }
}

test()